package com.cloud.custom.common.consts;

import java.util.Arrays;
import java.util.List;

/**
 * 行政处罚系统配置项
 * 
 * @author taominglong
 *
 */
public class CustomConsts {
	// 数据类型
	public static final int DATA_TYPE_TEXT = 1;
	public static final String DATA_TYPE_TEXT_NAME = "字符文本";
	public static final int DATA_TYPE_NUMBER = 2;
	public static final String DATA_TYPE_NUMBER_NAME = "数字";
	public static final int DATA_TYPE_DATE = 3;
	public static final String DATA_TYPE_DATE_NAME = "日期";

	// 箱子查询条件
	public static final String SEARCH_FIELD_INPUT = "input";
	public static final String SEARCH_FIELD_CALENDAR = "calendar";
	public static final String SEARCH_FIELD_DROPDOWN = "dropdown";

	// SQL解析上下文
	public static final String CONTEXT_HUMAN_ID = "humanId";
	public static final String CONTEXT_HUMAN_ID_COLUMN = "human_id";
	public static final String CONTEXT_HUMAN_NAME = "humanName";
	public static final String CONTEXT_HUMAN_NAME_COLUMN = "human_name";
	public static final String CONTEXT_UNIT_ID = "unitId";
	public static final String CONTEXT_UNIT_ID_COLUMN = "unit_id";
	public static final String CONTEXT_UNIT_NAME = "unitName";
	public static final String CONTEXT_UNIT_NAME_COLUMN = "unit_name";
	public static final String CONTEXT_UNIT_CODE = "unitCode";
	public static final String CONTEXT_UNIT_CODE_COLUMN = "unit_code";
	public static final String CONTEXT_PART_ID = "partId";
	public static final String CONTEXT_PART_ID_COLUMN = "part_id";

	// 案卷狀態編碼
	public static final int REC_STATE_NORMAL = 0;
	public static final String REC_STATE_NAME_NORMAL = "正常";

	public static final int REC_STATE_CANCEL = 99;
	public static final String REC_STATE_NAME_CANCEL = "作废";

	// 表默认应该有的字段
	public static final List<String> DFT_COLUMN_LIST = Arrays
			.asList(new String[] { "rec_id", "create_human_id", "create_human_name", "create_unit_id",
					"create_unit_name", "create_unit_code", "create_time", "state_id", "state_name" });
}
